#include "FoodChicken.h"

#include "UI/ModRun/Output/FactoryOutput.h"

FoodChicken::FoodChicken(QString strName)
{
    m_strName = strName;

    QString strOutput = "炸鸡 构造:" + m_strName;
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
}
FoodChicken::~FoodChicken()
{
    QString strOutput = "炸鸡 析构:" + m_strName;
    qDebug() << strOutput;
    std::shared_ptr<IOutput> pOutPut = FactoryOutput::GetInstance()->CreateRunOutput();
    if (pOutPut)
    {
        std::initializer_list<QString> outList{ strOutput };
        pOutPut->OutPut(outList);
    }
}

QString FoodChicken::GetFoodName()
{
    return m_strName;
}

float FoodChicken::GetFoodPrice()
{
    return 12.0f;
}
